package com.tywj.panda.customer.usercenter.provider

import com.tywj.panda.customer.common.provider.IUserCenterService
import com.tywj.lib.net.retrofit.request.PostRequest
import com.tywj.lib.route.Route
import com.tywj.lib.route.RouteNavigation
import com.tywj.panda.customer.usercenter.api.UserCenterApi
import com.tywj.panda.customer.usercenter.route.UserCenterRoute


/**
 * @desc 我的组件导航
 * @author June Yang
 * @date 2020/5/8
 */

@Route(path = UserCenterRoute.USER_SERVICE)
class UserCenterServiceImpl : IUserCenterService {

    override fun toUserCenterInfo(): RouteNavigation {
        return UserCenterRoute.toUserCenterInfo()
    }

    override fun toNickName(nickName: String): RouteNavigation {
        return UserCenterRoute.toNickName(nickName)
    }

    override fun toUserFeedBack(): RouteNavigation {
        return UserCenterRoute.toUserFeedBack()
    }

    override fun toAboutUs(): RouteNavigation {
        return UserCenterRoute.toAboutUs()
    }

    override fun toSetting(): RouteNavigation {
        return UserCenterRoute.toSetting()
    }

    override fun getUserDetails(uid: String): PostRequest {
        return UserCenterApi.getUserDetails(uid)
    }
}